<template>
  <el-alert @close="close" title="成功提示的文案" type="success"></el-alert>

  <el-alert title="消息提示的文案" type="info"></el-alert>

  <el-alert title="警告提示的文案" type="warning"> </el-alert>

  <el-alert title="错误提示的文案" type="error"> </el-alert>
</template>

<script>
export default {
  data() {
    return { count: 1 }
  },
  methods: {
    close() {
      console.log('5555')
    }
  }
}
</script>

<style>
.red-div {
  color: red;
}
</style>